#version 330 core
out vec4 FragColor;

//in vec3 ourColor;
in vec2 TexCoord;

// texture sampler
uniform sampler2D texture1;
//uniform sampler2D texture2;

//vec4 textureColor1;
//vec4 textureColor2;

void main()
{
    vec4 texColor = texture(texture1, TexCoord);
//    if(texColor.a < 0.1)
//        discard;
    FragColor = texColor;

//    textureColor1 = texture(texture1, TexCoord);
//    textureColor2 = texture(texture2, TexCoord);

//    FragColor = vec4(textureColor1.xyz * (1.0 - textureColor2.w)
//                     + textureColor2.xyz * textureColor2.w,
//                     1.0);
//    FragColor = vec4(texture(texture1, TexCoord).xyz * (1-texture(texture2, TexCoord).w)
//            + texture(texture2, TexCoord).xyz * texture(texture2, TexCoord).w, 1.0);
}
